<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/12/27
 * Time: 13:52
 */
$config['func'] = array(
    0   =>  array(
        'func'=>    'index',
        'func_cn'   =>  '首页推荐'
    ),
    1   =>  array(
        'func'=>    'content',
        'func_cn'   =>  '内容推荐'
    )
);


$config['source'] = array(
    's1'=>array(
        'source'=>'articles',
        'model'=>'Article_model',
        'path'=>'Article_model',
        'field'=>'id as articles_id,title,cover,intro',
        'source_cn'=>'文章'
    ),
    's2'=>array(
        'source'=>'activity',
        'model'=>'Activities_model',
        'path'=>'activities/Activities_model',
        'field'=>'id as activity_id,title,cover,intro,start_time,place_id,lecturer_id',
        'source_cn'=>'活动'
    ),
    's3'=>array(
        'source'=>'lecturer',
        'model'=>'Lecturer_model',
        'path'=>'lecturer/Lecturer_model',
        'field'=>'id as lecturer_id,name as title,avatar as cover,intro',
        'source_cn'=>'讲师'
    ),
    's4'=>array(
        'source'=>'place',
        'model'=>'Place_model',
        'path'=>'place/Place_model',
        'field'=>'id as place_id,name as title,cover,intro,city_id,address,traffic',
        'source_cn'=>'场地'
    )
);